package com.kelvin.paopao.rxbus.event;

import android.support.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by Administrator on 2017/5/5.
 */

public class ChatEvent {
    /**
     * chat的类型
     */
    public static final int SINGLE_CHAT = 400;
    public static final int GROUP_CHAT = 401;
    public static final int CHAT_ROOM = 402;

    @Retention(RetentionPolicy.SOURCE)
    @Target(ElementType.PARAMETER)
    @IntDef({SINGLE_CHAT, GROUP_CHAT, CHAT_ROOM})
    public @interface Chat_type {
    }

    public int chat_type = SINGLE_CHAT;

    public ChatEvent() {

    }

    public ChatEvent(@Chat_type int chat_type) {
        this.chat_type = chat_type;
    }
}
